﻿using System;
using System.Collections.Generic;

namespace RexToy.Cassandra
{    
    class Column<C> : IColumn<C>
    {
        internal Column(C name, object value)
        {
            name.ThrowIfNullArgument("name");

            _name = name;
            _value = value;
        }

        private C _name;
        public C Name
        {
            get { return _name; }
        }

        private object _value;
        public object Value
        {
            get { return _value; }
        }

        public ColumnType ColumnType
        {
            get { return ColumnType.Standard; }
        }

        public override string ToString()
        {
            return string.Format("[{0}, {1}]", _name, _value);
        }
    }
}
